package Vista;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.FlowLayout;
import java.awt.event.ActionListener;
import java.util.Vector;

import javax.swing.ComboBoxModel;
import javax.swing.DebugGraphics;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JOptionPane;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.border.EmptyBorder;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;

import Modelo.CentroS_Vacuna;
/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VentanaCentroxVac extends JFrame {

	private JFrame jFrame1;
	private JTable jTabla;
	private JFrame jFrame2;
	private JPanel jPanel1;
	private JButton jButton1;
	private JTable jTable1;
	private JComboBox jBuscar;
	private CentroS_Vacuna centrovac;


private void initGUI() {
	try {
		{
			jPanel1 = new JPanel();
			getContentPane().add(jPanel1, BorderLayout.CENTER);
			jPanel1.setLayout(null);
			{
				String[] centros = new String[centrovac.getCentroVac().CantCentroV()];
				for (int i= 0; i < centrovac.getCentroVac().CantCentroV(); i++)
					centros[i] = centrovac.getCentroVac().getCentroDeVacunacion(i).getNombreCtro();
				ComboBoxModel jBuscarModel = 
						new DefaultComboBoxModel(centros);
				jBuscar = new JComboBox();
				jPanel1.add(jBuscar);
				jBuscar.setModel(jBuscarModel);
				jBuscar.setBounds(22, 25, 145, 23);
			}
			{
				jButton1 = new JButton();
				jPanel1.add(jButton1);
				jButton1.setText("Buscar...");
				jButton1.setBounds(197, 25, 82, 23);
			}
			{
				TableModel jTable1Model = 
						new DefaultTableModel(
								new String[][] { { "One", "Two" }, { "Three", "Four" } },
								new String[] { "Column 1", "Column 2" });
				jTable1 = new JTable();
				jPanel1.add(jTable1);
				jTable1.setModel(jTable1Model);
				jTable1.setBounds(22, 60, 427, 243);
			}
		}
		{
			this.setSize(477, 353);
		}
	} catch(Exception e) {
		e.printStackTrace();
	}
	}
	}
	
